home *** CD-ROM | disk | FTP | other *** search
/ Acorn RISC PD-CD 1 / Acorn RISC PD-CD 1.iso / utilities / _comms / comms / _riscytnc / manual < prev    next >
Encoding:
Text File  |  1993-05-14  |  23.7 KB  |  551 lines

  1.                                  Riscy TNC
  2.                                  ========
  3.  
  4. RiscyTNC is a multi tasking terminal program for driving AX25 Terminal Node
  5. Controllers.
  6.  
  7. In order to use the program to the full, before setting up you should
  8. be able to do some simple editing of files in !Edit, and possibly be able
  9. to copy (and even better create!) sprites contained in a sprite file
  10. with !Paint.  Both !Edit and !Paint should have been supplied with your
  11. computer.
  12.  
  13. The Topics covered in this manual are
  14.  
  15. Main Features :
  16. Tells you how good the program is
  17.  
  18. Connecting your TNC :
  19. Advice on the DCD problem suffered by Archmedes!
  20.  
  21. Getting Started : 
  22. What to do with those files in the TNC sub-directory.
  23.  
  24. Checking Communication with  your TNC :
  25. Proving that your Arc can talk to the TNC and if it won't, some words of
  26. probably useless advice.
  27.  
  28. Using the Terminal :
  29. How to talk to your TNC without some dumb smart program getting in the way.
  30.  
  31. Other modes:
  32. Got a multimode? Fed up with the packet racket ? - Try this section
  33.  
  34.  
  35.                         --------------------------
  36.  
  37. Main Features       
  38. =============
  39.  
  40. The program is multi-tasking, with its control icon sitting on the icon bar.
  41. RiscyTNC can be configured to sit patiently "asleep" whilst another task usesthe the serial port, or be immediately active once installed.
  42.  
  43. RiscyTNC is also able to automatically determine which type of TNC is in use,
  44. and will load the appropriate configuration file.  Alternatively, TNC
  45. configuration files may be loaded manually.  Once a configuration file has
  46. been loaded, it is possible for the computer to set the TNC's real-time
  47. clock.
  48.  
  49. Output from the TNC can be saved to a file, or sent to a printer.
  50. Files can be sent to the TNC.
  51.  
  52. The program can drive multi_mode TNC's (e.g. KAM) in modes other than
  53. packet.
  54.  
  55.                         --------------------------
  56.  
  57.  
  58. Connecting your TNC to your Computer
  59. ====================================
  60.  
  61. Use a lead supplied or make up your own lead to connect the TNC to your
  62. Archimedes' serial port.  The manual supplied with your TNC should tell
  63. you how to wire the pins.  Note that the Riscy TNC program uses hardware
  64. (CTS / RTS) handshaking in order to give you maximum flexibility.
  65.  
  66. A known problem area is in the use of the DCD line.  With older machines
  67. using GTE and CMD serial chips this line must be asserted at all times.
  68. On all machines if this line is not asserted, characters travelling between
  69. the TNC and computer may be lost, but with newer Acorn machines you may be
  70. able to get round this problem by use of the 'Ignore DCD' feature in the
  71. Config file.
  72.  
  73. Some TNCs use the DCD line to signal that the currently selected stream is
  74. connected, others may tie this line permanently asserted. With an older
  75. Archimedes it is worth tying pin8(DCD) of the serial port lead to pin 4(DTR)
  76. at the Archimedes end. If you do this, make sure that pin8 is disconnected
  77. from the TNC.
  78.  
  79. Getting Started
  80. ===============
  81.  
  82. Before using RiscyTNC, shift and double click on the Riscy TNC icon
  83. in its filer window and then load the file called 'Config' into !Edit.
  84.  
  85. This file is used to set up the serial port and permit RiscyTNC to
  86. automatically detect the type of TNC in use.  Please note that if you
  87. wish to use the auto-recognition facility, your TNC should be set to
  88. the same baud rate and data format as that used by the program.
  89. Comments in the Config file are preceeded with the '|' character.
  90.  
  91. IMPORTANT:  If you need to weedle a control character into a command,
  92. precede it with the character ^ then denote the character in lower
  93. case letters.
  94.  
  95. e.g. to get the character 03 (control-c) into a command, position the caret
  96. if it's not in the right place- hold down an ALT key whilst dialling 94
  97. on the keypad, release ALT, then type a little c.  The end result should
  98. look like ^c
  99.  
  100. Two ^ characters (^^) is the equivlalent of carriage return.  This allows
  101. multiple commands to be sent to the TNC.
  102.  
  103. e.g. Kiss On^^Restart <ret> is the same as
  104. Kiss On <ret>
  105. Restart <ret>
  106.  
  107.                         --------------------------
  108.  
  109.  
  110. Explanation of Config file parameters
  111. =====================================
  112.  
  113. Version   : Purely for the programs internal use. If a later version of
  114.             Riscy TNC emerges that requires a larger list of parameters
  115.             in it's Config file, the program can alert you to the fact
  116.             that a supplied config file is 'out of date'.
  117.  
  118. Language  : Should be English, for use at a later date if foreign language
  119.             versions are made available.
  120.  
  121. Streamca  : This is the character used by your TNC for changing
  122.             Input streams. The standard default is '|'.
  123.  
  124. TNC Type  : List the type(s) of your TNC here. The TNC listed in position 1
  125.             becomes the default. It's best not to use more than eight
  126.             characters to describe your TNC, as this name will be the
  127.             name also given to sprites and files.
  128.  
  129. Sign on   : List a unique set of characters that appear in your TNC's
  130.             power-on message to allow Riscy TNC to identify your TNC.
  131.  
  132. Auto-init : A 'Y' here will allow the program to automatically identify your
  133.             TNC, and set the Archimedes to the baud rates and data formats
  134.             given in the following serial port parameters.
  135.  
  136.             If you only have one TNC, a 'D' character after the colon will
  137.             set the baud rate and data format described below, and then
  138.             select the default TNC (that in position 1) without waiting to
  139.             see characters from the TNC.
  140.  
  141. (For the following serial port parameters, if you are in any doubt as
  142.  to which values to use, check in the manual supplied with your TNC)
  143.  
  144. Baud Rate  : Place the Baud rate here that you wish to use if the program
  145.              auto initialises.  The program will tell you if it cannot cope
  146.              with the value given.
  147.  
  148. Bits       : The number of data bits chosen on initialisation.
  149.  
  150. Stop Bits  : Stop bits on initialisation
  151.  
  152. Parity     : Use 0 for no parity, 1 for Odd, 2 for Even parity.
  153.  
  154. Ignore DCD : A 'Y' here will mean that the program will ignore the setting
  155.              of the DCD line from the TNC upon initialisation. be warned
  156.              though that ignoring DCD may give problems on older Archimedes
  157.              machines!
  158.              The value 'N' may mean that characters are lost if the DCD
  159.              pin on the serial port is not correctly asserted.
  160.  
  161. The stream outputs can appear in a window, and as new lines appear, the
  162. previous text scrolls up the screen.  The smoothness of the scrolling
  163. action depends on the value of the Scroll parameter.
  164.  
  165. Scroll     : Must be 2,4 or 8.  Other values will give a warning
  166.              message upon program initialisation, and defaults to 4.
  167.              A value of 2 gives the smoothest scrolling of received text in
  168.              a window, 8 the coarsest. Note that value 2 should only be used              with VGA modes
  169.  
  170. Getting Started (Continued)
  171. ===========================
  172.  
  173. In the TNC  subdirectory, are some files with the same names as types
  174. of TNC. These files have the same names as the TNC types described in the
  175. Config file that you should have looked at recently.
  176.  
  177. The purpose of these files is to describe the commands that the TNC would
  178. like to receive from the program.  If you cannot see the name of your TNC
  179. on a file in the TNC directory, copy a file (e.g. tnc-320) giving it the
  180. same name as you used to describe your TNC in the Config file
  181.  
  182. Load the appropriate TNC file into !Edit, and make any adjustments you wish.
  183. You may well need the manual supplied with your TNC by you.
  184.  
  185. You should also like to load the file '!Sprites' into !Paint and make a
  186. sprite with the same name that your tnc was given in the config file.
  187. If you can't be bothered to make up a sprite with a picture of your TNC,
  188. copy one of the others, and re-name it.
  189.  
  190. Sprites and setup files are already provided for the following TNC's:
  191.  
  192. Pac-Comm TNC-320
  193. Kantronics KAM
  194.  
  195. Explanation of TNC file parameters:
  196. ===================================
  197.  
  198. Auto clock set : 'Y' means that the Archimedes will feed its current time
  199.                  and date setting to your TNC upon initialisation. This
  200.                  setting should be set to 'N' if you keep your Archimedes
  201.                  on a wierd time setting, or your TNC has a battery backed
  202.                  clock.  N.B. If your Archimedes clock is on BST, your TNC
  203.                  clock will be set to BST also
  204.  
  205. Clock digits   : Check your TNC manual to see if the time is set as
  206.                  HH:MM (use the value '4') or HH:MM:SS (use the value '6')
  207.                  A good place to look is under the DAYTIME command on most
  208.                  TNC's
  209.  
  210. Command mode   : The command that your TNC needs to get into command mode.
  211.                  Usually control-c or (^c) as it should appear one space to
  212.                  the right of the colon.  If you have a TNC that can make
  213.                  use of the serial port break facility - and it is enabled,
  214.                  use the word 'Break' (case-sensitive).  This will ensure
  215.                  that you don't have to type any lengthy and complicated
  216.                  sequences to get out of transparent mode if you have to.
  217.  
  218. Converse mode  : The command that your TNC needs to get into converse mode,
  219.                  typically 'Convers' or K .
  220.  
  221. Transparent    : Usually something like 'Trans'
  222.  
  223.  
  224. Enter Kiss     : This command is provided for users of advanced programs
  225.                  utilising KISS protocol  Use the sequence to enter Kiss
  226.                  mode.  This program does not support KISS !
  227.  
  228. Exit Kiss      : The escape sequence from Kiss (usually 192,255,192)
  229. ---------------------------------------------------------------------------
  230. The entries against these commands may be left blank if you have a packet
  231. only TNC.
  232.  
  233. Packet         : Enter the sequence you need to use to return to packet
  234.                  from another mode.
  235.  
  236. RTTY - NAVTEX  : Against each description, enter the appropriate command
  237.                  that your TNC requires.  If your TNC does not implement
  238.                  a command - leave it blank
  239. ---------------------------------------------------------------------------
  240.  
  241. Port descrip'ns: Against each port, place a short written description as to
  242.                  its use.  (Not more than ten characters)
  243.  
  244. Commands needed to use ports.
  245.  
  246. Stream Prefix  : Place here the stream prefix that your tnc uses. It is
  247.                  often described as the Stream switch character in makers
  248.                  manuals.  If you have a TNC (like the KAM) which has
  249.                  different streamswitch characters depending on the port
  250.                  in use, place the word PORT here.
  251.  
  252. First stream   : The character used by the first stream, your tnc's manual
  253.                  usually refers to this character under a chapter titled
  254.                  multiple connects, or similar.  On most TNC's this is the
  255.                  character A, but on PK232's it can be 0
  256.  
  257. After first stream there is another list of ports against which you enter
  258. the command that the tnc needs to change to that port.  On TNC's which use
  259. their streamswitch character to switch ports, please enter that character
  260. here.
  261.  
  262. --------------------------------------------------------------------------
  263. Sequences needed to drive modes such as RTTY etc.
  264. You can leave this section of commands blank if you do not have
  265. a multimode TNC.
  266.  
  267. Against each description enter the command which you would have needed
  268. to enter from the command line in order to carry out the required action.
  269. Reference to your controllers manual is essential.
  270. --------------------------------------------------------------------------
  271.  
  272.  
  273. Checking Communication with your TNC:
  274. =====================================
  275.  
  276. Once you have set the configuration and tnc files as described above,
  277. make sure that your TNC is plugged into your Archimedes and switched off.
  278.  
  279. Double click on the RiscyTNC icon in your filer window, and a RiscyTNC icon
  280. of some description should appear on the Icon Bar. The icon and it's message
  281. will depend on your setting of Auto-init in the Config file
  282.  
  283. If you have a setting of 'Y', the text on the Icon bar should be 'Await'-
  284. the TNC is waiting for the TNC to send it's startup message so that it can
  285. identify it.  If you chose 'N', RiscyTNC will be asleep, waiting for you
  286. to command it into life.  With the D option RiscyTNC should state that it
  287. is in Idle mode, and will have already initialised.
  288.  
  289. +Switch on your TNC
  290.  
  291. If you chose Option 'Y', with all being well, the bar icon should change
  292. to idle.  Swipe another window across the icon and 'idle' to make sure 
  293. that the icon doesn't disappear, if it does, you do not have a correctly
  294. named sprite in the !Sprites file. If the icon still says 'Await' after
  295. a few seconds, then you may not have set the sign-on parameter correctly
  296. in the config file, or you've got mega problems (see the no sensible
  297. response section below).
  298.  
  299. Option 'N' choosers should now menu on the RiscyTNC icon on the Icon bar.
  300. Click on 'Initialise'.  An initialisation window should appear.  Click on
  301. the blue arrow until you see the name of your TNC.  If you don't after seven
  302. or eight tries, go back to editing your config file and make sure that
  303. you have correctly described your tnc.  When you have seen the name of your
  304. TNC, (or something similar if you want to experiment), click on OK.  The
  305. program should now initialise your TNC.
  306.  
  307. +Click select (The left button) on the RiscyTNC icon on the icon bar.
  308.  
  309. A window called Riscy TNC should appear.
  310.  
  311. +Click select on the left hand 'Terminal' Icon
  312.  
  313. If you get an initialisation window pop-up, the program has not initialised
  314. see the section above for Auto-init option 'N'
  315.  
  316. A large window called 'Terminal' should appear with possibly (if all is well)
  317. your TNC's command prompt.  Make sure that the right hand scroll bar is
  318. dragged right to the bottom of its travel, and the bottom scroll bar is
  319. at its furthest left limit.  Now click select at the very bottom of the grey area just above the bottom scroll bar.  A little green cursor will appear
  320. and the terminal bar at the top will change to yellow.
  321.  
  322. Try typing in something that your TNC manual says it might understand
  323. followed by Return.
  324.  
  325. With luck a reply from the TNC should appear just above the dotted lines.
  326. If it doesn't, see the trouble section below.  If all seems well, go onto
  327. the section called 'Using Terminal'
  328.  
  329. If you do not get a sensible response
  330. =====================================
  331.  
  332. 1) Is the TNC switched on and powered ?
  333.    Seems silly, but there's one born every day
  334.  
  335. 2) Check your serial lead from the Arc to the TNC is plugged in.
  336.    AT BOTH ENDS!
  337.  
  338. 3) Is the serial lead correctly made ?
  339.    Especially if you made it yourself!
  340.  
  341. 4) Is the handshaking working correctly ?
  342.    If you get no response at all, then it looks like a handshaking problem,
  343.    I've thought of this one.
  344.    Click menu (middle button) on the RiscyTNC icon on the icon bar
  345.    Take the pointer to 'Serial Port' and move right until you get
  346.    a second menu alongside. Click select (LHS button) on Handshaking
  347.  
  348.    A window called serial port handshking should appear:  Lets go through
  349.    the icons. The coloured dots to the left of the words indicate state
  350.    and are the points you should click on if you wish to change something.
  351.    
  352.    XON/XOFF  : If green the arc is expecting to use software flow control
  353.                Click on the green dot to make it red
  354.  
  355.    Use DCD   : When green indicates that the arc needs the DCD line
  356.                to be asserted for it to work.
  357.                Best red on later machines. If this is green (probably
  358.                because you have not set ignore DCD to 'Y' in the config file
  359.                and you have an older machine) make sure that
  360.                DCD is green also (see DCD below), otherwise you're not
  361.                going to get anywhere.
  362.  
  363.    Use DSR   : When green this means the Arc needs the DSR line asserted
  364.                If the DSR indicator is red, try changing Use DSR to red
  365.                also in order to get you out of a possible problem with
  366.                your serial port connections
  367.  
  368.    Ring      : Denotes state of ring line. Some TNC's use this for obscure
  369.                purposes. Don't worry just yet.
  370.  
  371.    XOFF Rx'd : Get this one Red . If it's green, your TNC may be trying to
  372.                implement software flow control.
  373.  
  374.    XOFF Sent : Should be Red, if green, another program may have used the
  375.                serial port for software flow control, and confused the
  376.                TNC. Try switching everything off and back on again.
  377.  
  378.    DCD       : If Red your DCD line input to the arc is not asserted. If
  379.                Use DCD is green this could well be your problem!
  380.                See the section called 'Connecting your TNC to your Computer'
  381.                above.
  382.  
  383.    DSR       : Hopefully green. If red your serial cable is not correctly
  384.                wired, or your TNC is not activating the DSR line (probably
  385.                for an even more obscure purpose than the Ring Line!)
  386.                (N.B. Some TNC's feed the DTR line from the Arc back on this
  387.                line, so check that one too!)  If all else fails, click on
  388.                green dot next to use DSR in order to turn it red.
  389.  
  390. 5) Are the baud rate and data formats correctly set between the TNC and Arc?
  391.    If you are getting characters in the terminal window, but they don't
  392.    make much sense, then you'll need to check the baud rate and data format
  393.    in the manual supplied with your TNC.  If you put the correct parameters
  394.    into the config file, then your TNC may have gone walkabout, or more
  395.    likely, the Eprom inside your TNC was supplied with different parameters
  396.    to the manual.
  397.  
  398.    You can change the baud rate and data format from the program.
  399.    Click menu (the middle button) on the RiscyTNC icon on the Icon bar.
  400.    Take the pointer up to 'Serial Port' then slowly right until you
  401.    get a second menu.  Click select (Left button) on 'Data Format'.
  402.  
  403.    The Serial Port window which appears doesn't need much explanation,
  404.    click on the blue arrows to change things, then on OK when you've
  405.    done.  If you do manage to find the correct values, put them into
  406.    your config file.  Most TNC's these days are either
  407.  
  408.    a) 1200 Baud, 7 bit, 2 Stop bit, Even Parity
  409.    b) 9600 Baud, 8 bit, 1 Stop bit, No parity.
  410.  
  411.    Try to avoid the settings called 'Wierd Parity'. And yes, although
  412.    it can do 50 baud 5 bit 1½ stop bit, it won't do 45.45, and it won't
  413.    convert into murray either.  If you have an older Arc, and are intent
  414.    on feeding an ST5 directly, look up timer 2's role in the IOC chapter
  415.    in the VLSI book.  A5000 users will need to know about fiddling an
  416.    82C710 chip instead.
  417.  
  418.                         --------------------------
  419.  
  420.  
  421. Using the Terminal
  422. ==================
  423.  
  424. The terminal is a simple dumbish terminal for those times when you need
  425. to talk to your TNC in the language it understands, and not let a so-called
  426. smart terminal get in the way with its interpretation of what it thinks
  427. you mean.
  428.  
  429. The terminal is started by clicking select on the RiscyTNC icon on the icon
  430. bar, and then select on the terminal icon on the Riscy TNC window.
  431.  
  432. The receive screen is the area above the dotted line, the send part is
  433. at the very bottom of the work area.
  434.  
  435. To write to your TNC, make sure that the scroll bar on the right hand side
  436. is fully down, and the bottom scroll bar is fully left.
  437. Click near the bottom of the screen just above the scroll bar.  This is also
  438. the place you will need to click on if you go off to do work on another
  439. screen, and then wish to return to typing on the terminal.
  440. A green cursor should appear, the window get's the input focus and the title
  441. bar at the top should turn yellow.
  442.  
  443. You can edit the input using the left/right cursor, and delete keys.
  444. A press on Return sends your line to the TNC.  Characters from the TNC
  445. appear above the dotted line.
  446.  
  447. Incoming data from the TNC can be spooled to a file.  Menu on the terminal
  448. window, and go for Spool to file.  The section below explains. Note that
  449. the file will contain a true representation of the bytes received if
  450. the Data option is selected.  The text option 'fiddles' the incoming
  451. data stream so that the file (when complete) may be loaded into !Edit.
  452.  
  453. To send a file of data to the TNC, drag its icon to the terminal window
  454. and drop it.  Line feed bytes in the file are converted to carriage returns
  455. if the file has its filetype set to text (&FFF).  Other filetypes are
  456. treated as data, and are not corrupted.
  457.  
  458. By clicking Menu on the window, you will get a choice of options
  459.  
  460. 1) Command : Not yet implemented
  461.  
  462. 2) Mode    : See the section on other modes
  463.  
  464. 3) Print
  465.    Click on print to send incoming characters to the printer.
  466.    If this option is ticked, clicking on it will stop output from the
  467.    TNC going to the printer.
  468.  
  469.  
  470. 4) Send to file / End file
  471.    This option controls the saving of characters coming from the TNC
  472.    to a file.
  473.  
  474.    Spool to file leads onto a spool as window.  The name of the file
  475.    appears in the white icon and is changeable. The default directory
  476.    is the directory called 'Files' inside the RiscyTNC directory.
  477.    The default filename is Panic.  You can change both the directory,
  478.    and filename by use of the cursor and delete keys, and of course,
  479.    the alpha-numeric keys on the keyboard.
  480.  
  481.    If you do not like the choice of default directory for spool files,
  482.    and would regularly like to use another directory (e.g. RamFS) then
  483.    you might like to change the argument for <RiscyTNCfiles$Dir> located
  484.    in the !Run file.
  485.  
  486.    Clicking on the blue arrow changes the type of file that is created
  487.    A choice of data, will result in all characters coming from the TNC
  488.    being saved exactly as they are.  A choice of Text will change carriage
  489.    returns to Line feeds, in order that you can save text coming from
  490.    the TNC into a file which will look correct in !Edit
  491.  
  492.    Click on OK, or press return, when you are happy with the name of the
  493.    file, and its type.
  494.  
  495.    If a file is being spooled to, this option reads End file. Click on
  496.    this option to stop sending data to the file.
  497.  
  498.    Note that the spool to file option does not make use of an icon that
  499.    you drag to a filer window.  This is because the file being created
  500.    is not a complete file, and might give Risc-OS and applications
  501.    headaches if you entrusted them with the icon.
  502.  
  503. 5) Stop output.
  504.    This icon only becomes active if a file is being sent to the TNC.
  505.    Click here if you wish to stop sending the file
  506.  
  507. 6) Close Stream
  508.    Click here when you have finished using the terminal.
  509.  
  510. Other modes
  511. ===========
  512.  
  513. If you have a multi-mode TNC like a KAM, the program can drive TNCs in
  514. the following modes (providing your TNC can cope).  Note that other modes
  515. are only available from the terminal window.
  516.  
  517. RTTY, ASCII, AMTOR, FEC, NAVTEX and PACTOR
  518.  
  519. You will need to have set up the commands your TNC requires for these
  520. operations, in its TNC file.
  521.  
  522. CW is not presently supported, cos I prefer ears and keys!! HARGHH HARGHH !!    
  523. Enter terminal mode, then menu on the terminal window. Follow the modes
  524. arrow, then the other modes arrow, click select on the mode you require.
  525. If it is a mode where a selcall may be needed, a window will appear inviting
  526. you to enter a selcall.  Should you not wish to enter a selcall, just click
  527. on OK anyway leaving the writeable box blank.  With luck, you should enter
  528. the correct mode.
  529.  
  530. In order to drive such unimportant items such as PTT lines etc. Click select
  531. on the terminal window.  An suitable command window should appear.  If the
  532. command you want is not readily visible, pull down the scroll bar, and see
  533. if it's there.
  534.  
  535. Present commands (subject to proper setting up in the TNC file) are:
  536.  
  537. Transmit     : Very important if you have a licence
  538.  
  539. Rx after     : Return to receive when your TX buffer is exhausted
  540.  
  541. Rx immediate : Go back to receive NOW! (e.g. if YL notices severe
  542.                patterning on Neighbours etc.)
  543.  
  544. Invert       : Invert characters
  545.  
  546. Shift        : Alter shift
  547.  
  548. To escape back to packet, menu on the terminal window, follow other modes,
  549. then select the packet option at the top.
  550.  
  551. V0.11 3/5/93